package cn.kbyue.security.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author xlang
 * @version 0.0.1
 * @desciption
 * @date 2021/9/14 18:57
 */
@Getter
@AllArgsConstructor
public enum UserStatusEnum {
    /**
     * 账号的状态
     */
    NORMAL(0, "正常使用"),
    DISABLE(1, "禁用"),
    // 多次密码登录错误会被锁定
    LOCKED(2, "锁定"),
    EXPIRED(3, "过期"),
    ;

    private final Integer code;
    private final String message;
}
